package org.crmsystem.service;

import java.util.List;
import java.util.Map;

import org.crmsystem.model.Appoint;

/**
 * 预约业务接口
 * @author Administrator
 *
 */
public interface IAppointService {

	/**
	 * 添加预约信息
	 * @param appoint
	 * @return
	 */
	int insertAppoint(Appoint appoint) throws Exception;
	/**
	 * 删除预约信息
	 * @param id
	 * @return
	 */
	int deleteAppoint(int id);
	/**
	 * 修改预约信息
	 * @param appoint
	 * @return
	 * @throws Exception
	 */
	int updateAppointById(Appoint appoint) throws Exception;
	/**
	 * 多条件查询
	 * @param type
	 * @param keyword
	 * @return
	 */
	List<Appoint> getAppointByKeyword(String type,String keyword);
	/**
	 * 根据id查询预约信息
	 * @param id
	 * @return
	 */
	Appoint getAppById(int id);
	
}
